
package org.osflash.signals;

class HaxeUtil {

	public static function getQualifiedClassName(v:Dynamic) : String {
		return switch(Type.typeof(v)) {
		case TUnknown: "Unknown";
		case TObject: "Object";
		case TNull: "Null";
		case TInt: "Int";
		case TFloat: "Float";
		case TFunction: "Function";
		case TBool: "Bool";
		case TEnum(e):
			Type.enumConstructor(e);
		case TClass(c):
			Type.getClassName(c);
		}
	}
}